package com.yjd.comm.wal.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.wal.dto.WalExtensionVo;
import com.yjd.comm.wal.model.WalExperienceDataModel;

/**
 * <b>description</b>：小钱包用户体验金明细业务接口<br>
 * <b>time</b>：2015-09-15 11:04:45 <br>
 * <b>author</b>：  new
 */
public interface IWalExperienceDataService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public WalExperienceDataModel insert(WalExperienceDataModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(WalExperienceDataModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	/**
	 * 查询用户累计获得的体验金
	* @param pramMap
	* @return
	* @throws Exception
	* Double
	 */
	public Double getTotalAmount(Map<String, Object> pramMap) throws Exception;
	
	/**
	 * 统计在投体验金
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public Double sumAvailableExperience(Map<String,Object> param)throws Exception;
	
	/**
	 * 统计
	* @param param
	* @return
	* @throws Exception
	* List<WalExtensionVo>
	 */
	public List<WalExtensionVo> getWalExtensionVo(Map<String,Object> paramMap) throws Exception;
	

}
